import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取建议书数据
  getTradeData: (query) => api.post(`${config.interfaces.type1}proposal/queryproposallist`, query),
  //
  getTradeDataWITHMAAT: (query) => api.post(`maat/${config.interfaces.type1}proposal/queryproposallist`, query),
  // 获取明细数据
  getDetailData: (query) => api.get(`${config.interfaces.type1}etfproposal/find-one-by-proposal-id`, query),
  // 资管获取明细数据
  getDetailDataWITHMAAT: (query) => api.get(`maat/${config.interfaces.type1}etfproposal/find-one-by-proposal-id`, query),
  // 撤回
  cancelInstruction: (query) => api.get(`${config.interfaces.type1}proposal/cancel-instruction`, query),
  // 资管撤回
  cancelInstructionWITHMAAT: (query) => api.get(`maat/${config.interfaces.type1}proposal/cancel-instruction`, query),
};
